<?php

namespace App\Validators\Buz;

use \Prettus\Validator\Contracts\ValidatorInterface;
use \Prettus\Validator\LaravelValidator;

class ImageValidator extends LaravelValidator
{

    protected $rules = [
        'upload' => [
            'image' => 'required|file|mimes:png,jpeg,jpg|image|max:2048'
        ]
   ];

    protected $attributes = [
        'image' => '图片'
    ];
}
